<template>
	<view class="content_Fifteen">
		<view class="content_Fifteen_name">{{$t('采购历史')}}</view>
		<view class="content_Fifteen_block">
			<scroll-view class="scroll-view_H" scroll-x="true">
				<view @click="handeleChange(item)" class="scroll-view-item_H" v-for="(item,index) in list" :key="index">
					<image class="img_top" src="@/static/homePage/hero_bg01.jpg" mode=""></image>
					<view class="img_title">产品名称</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [1, 2, 3]
			}
		}
	}
</script>

<style scoped>
	.img_title {
		width: 273rpx;
		height: 50rpx;
		margin: 0rpx auto;
		word-break: break-all; /* 允许断行 */
		overflow: hidden; /* 超出隐藏 */
		display: -webkit-box; /* 设置为盒子模型 */
		-webkit-box-orient: vertical; /* 纵向布局 */
		-webkit-line-clamp: 2; /* 限制行数为2 */
		white-space: normal; /* 确保正常换行 */
	}

	.img_top {
		width: 319rpx;
		height: 207rpx;
		border-radius: 16rpx 16rpx 0rpx 0rpx;
	}

	.scroll-view-item_H {
		display: inline-block;
		width: 319rpx;
		height: 285rpx;
		font-size: 20rpx;
		margin-right: 12rpx;
		border-radius: 16rpx;
		border: 2rpx solid #F0F0F0;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
		height: 285rpx;
	}

	.content_Fifteen_block {
		width: 100%;
		height: 285rpx;
	}

	.content_Fifteen_name {
		font-weight: 500;
		font-size: 30rpx;
		color: #3D3D3D;
		margin-bottom: 24rpx;
	}

	.content_Fifteen {
		margin-top: 12rpx;
		padding: 34rpx 60rpx 24rpx 60rpx;
		width: 750rpx;
		height: 395rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}
</style>